<template>
	<view>
		<view v-for="(item,index) in aee" :key="index" >
			<view>
				{{item.title}}
			</view>
			<view class="">
				{{item.add_time |formatDate}}
			</view>
		</view>
		<rich-text :nodes="item.content" v-for="(item,index) in aee" :key="index"></rich-text>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				aee:[]
			}
		},
		onLoad(option){
			console.log(option)
				this.init(option)
		},
		methods: {
			init(option){
				uni.request({
					url:`http://localhost:8082/api/getnew/${option.id}`,
					method:'GET',
					success: (data) => {
						this.aee=data.data.message
						console.log(data)
					}
				})
			}
		}
	}
</script>
<style>
</style>